<div ng-if="$ctrl.options.globalSeriesType != 'custom'">
  <plotly-chart options="$ctrl.options" series="$ctrl.chartSeries"></plotly-chart>
</div>
<div ng-if="plotlyOptions.globalSeriesType == 'custom'">
  <custom-plotly-chart options="$ctrl.options" series="$ctrl.chartSeries"></custom-plotly-chart>
</div>
